cmake_minimum_required(VERSION 3.25 FATAL_ERROR)

project(learnLua
    VERSION 1.0.0
    DESCRIPTION "Learn Lua"
    LANGUAGES CXX)

set(CXX_STANDARD 17)
set(CXX_STANDARD_REQUIRED ON)
set(CXX_EXTENSIONS OFF)


find_package(Lua51)

# 包含头文件
include_directories(${LUA_INCLUDE_DIR})


add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME} ${LUA_LIBRARIES})